package org.xp.judgeplatform.converter;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.xp.judgeplatform.pojo.entity.User;
import org.xp.judgeplatform.pojo.vo.UserVO.UserVO;

@Mapper(componentModel = "spring")
public interface UserConverter {
    
    @Mapping(target = "token", ignore = true)
    @Mapping(target = "refreshToken", ignore = true)
    UserVO toUserVO(User user);
}